#include "Canvas.h"
namespace NBGUI
{
	Canvas::Canvas(GUIDrawer* drawer, const char* name, const char* eleText, int eleType, Rect& _rect):
		ElementNode(drawer, name,eleText,eleType,_rect) 
	{
		//it is a container
	}

	Canvas::~Canvas()
	{

	}

	void Canvas::draw()
	{
		if(hide)
			return;
		//draw nothing
		//draw the children
		
		for(auto it = children.begin(); it != children.end(); ++it)
		{
			(*it)->draw();
		}
	}


}